package com.kedacom.ctsp.authz.security.captcha;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;


/**
 * 验证码配置
 *
 * @author sunchenjie
 * @create 2017-12-28 14:24
 **/
@Data
@ConfigurationProperties(prefix = "commons.authz.captcha")
public class CaptchaProperties {

    /**
     * 是否启用验证码功能
     */
    private Boolean enable = false;
    /**
     * 第几次密码错误开始，必须显示验证码
     */
    private int showTimes = 0;
    /**
     * 验证码宽度
     */
    private String imageWidth = "200";
    /**
     * 验证码高度
     */
    private String imageHeight = "60";

}